package tutor;

/**
 *
 * @author y_plaksyuk
 */
public abstract class ArithmeticQuestion {
	private long seed = System.currentTimeMillis();

	public abstract String getTitle();

	public abstract void askQuestion(ArithmeticUnit unit);

	protected int random(int maxValue) {
		seed = (seed >> 7) ^ System.currentTimeMillis();
		return 1 + Math.abs((int) seed % maxValue);
	}
}
